const pieConfig = {
  legend: {
    left: "center",
    type: "scroll",
  },
  series: [
    {
      type: "pie",
      data: [],
      label: {
        show: true,
        formatter: "{b} {d}%"
      },
      emphasis: {
        itemStyle: {
          shadowBlur: 10,
          shadowOffsetX: 0,
          shadowColor: "rgba(0, 0, 0, 0.5)"
        }
      }
    }
  ]
};
const generatePieOptions = (data: any[]) => {
  pieConfig.series[0].data = data;
  return pieConfig;
};
export default generatePieOptions;
